package com.liuda066.forumssm.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@ApiModel("用户信息类")
@Data
public class User {
    @ApiModelProperty("用户ID")
    private Long id;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    @JsonIgnore
    private String password;

    @ApiModelProperty("昵称")
    private String nickname;

    @ApiModelProperty("电话号码")
    private String phoneNum;

    @ApiModelProperty("电子邮箱")
    private String email;

    @ApiModelProperty("性别")
    private Byte gender;

    //敏感信息 不在网络传输
    @JsonIgnore
    private String salt;

    @ApiModelProperty("头像地址")
    private String avatarUrl;

    @ApiModelProperty("发帖数")
    private Integer articleCount;

    @ApiModelProperty("是否是管理员  0 否  1 是")
    private Byte isAdmin;

    @ApiModelProperty("个人简介")
    private String remark;

    @ApiModelProperty("状态 0 正常  1 禁言")
    private Byte state;

    @ApiModelProperty("删除状态  0 正常 1 删除")
    @JsonIgnore
    private Byte deleteState;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;


}